<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			function pgsj(){
				this.color='土豪金';
				this.price='8000元';
				this.size='5.5寸';
				this.weight='200g';
				this.chat=function(){
					alert('能聊天');
				};
				this.call=function(){
					alert('能打电话');
				}
			};
			var iphone9 = new pgsj();
			document.write(iphone9.color);
			document.write(iphone9['color']);
//			iphone9.chat();
			iphone9['chat']();
		</script>
	</head>
	<body>
	</body>
</html>
